package com.gamemeal.utils {	import flash.display.Bitmap;	import flash.display.BlendMode;	import flash.display.DisplayObject;	import flash.display.DisplayObjectContainer;	import flash.display.Sprite;	import flash.utils.ByteArray;	/**
	 * @author Colin
	 */
	public class Utils {		public static function clone(source:*):*{		    var copier:ByteArray = new ByteArray();		    copier.writeObject(source);		    copier.position = 0;		    return(copier.readObject());		}				public static function mask(src:DisplayObject,mask:DisplayObject):void{			if(mask is Sprite){				src.mask = mask;				return;			}			if(src is DisplayObjectContainer && mask is Bitmap){				DisplayObjectContainer(src).addChild(mask);				mask.blendMode = BlendMode.ALPHA;				src.blendMode = BlendMode.LAYER;				return;			}		}				public static function degreeToRadian(degree:Number):Number{			return degree * Math.PI/180;		}				public static function radianToDegree(radian:Number):Number{			return radian * 180/Math.PI;					}	}}